Embed

Embed content into the target container.

embed(container:HTMLElement, options: EmbedOptions): void
  • The container can be any legitimate HTML5 container - usually a DIV tag.
  • The content selection and settings for the embed are specified in the EmbedOptions object. This can include filters and targets for dynamically filtering content in embedded mode.

Example

The following snippet creates the embed options object - using only the content ID of something we wish to embed - and then loads the content through the embed function into "myContainer"

var options = {contentId: "c20d42b4-be24-47cf-b711-d5782f048590"} client.embed($("myContainer"), options);